package com.zyh.homework.test5.domain;

public class Employee {
    public String id;
    public String name;
    public int age;
    public int salary;

    public Employee() {
    }

    public Employee(String id, String name, int age, int salary) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.salary = salary;
    }

    //    getInfo() 方法
    public void getInfo(){
        System.out.println("编号:"+id+","+"姓名:"+name+","+"年龄:"+age+","+"薪资:"+salary);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }
}
